import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import {resolve} from 'path'

export default defineConfig({
  plugins: [vue()],
  server: {
    port: 4000,
    open: true
  },
  resolve: {
    alias: {
      '@': resolve(__dirname, 'src'),
      'assets': '@/assets',
      'common':'@/common',
      'components':'@/components',
      'network':'@/network',
      'views':'@/views'
    },
  },
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'scss',
      patterns: []
    }
  }
})
